GetRFontInfo Sub Action Gets the font information on the currently registered font. Syntax GetRFontInfo ( n%, fontinfo) Remarks The GetRFontInfo procedure uses the following arguments. ----------------------------------------------------------------------------- Argument Description ---------------------------------------------------------------------------- n% The number of the registered font. fontinfo A variable of type FontInfo that receives the font-header information. The FontInfo data structure type is defined as follows. FontInfo TYPE FontInfo FontNumASINTEGER AscentASINTEGER PointsASINTEGER PixWidthASINTEGER PixHeightASINTEGER LeadingASINTEGER AvgWidthASINTEGER MaxWidthASINTEGER FileNameASSTRING * cMaxFileName FaceNameASSTRING * cMaxFaceName END TYPE The following list describes the parts of the FontInfo data structure. ----------------------------------------------------------------------------- Part Description ---------------------------------------------------------------------------- FontNum The location of the font in the Part Description ---------------------------------------------------------------------------- FontNum The location of the font in the registered list or the loaded list. Ascent The pixel distance from the character baseline to the top of the character box. Points The point size of the current font as defined in the LoadFont% function. PixWidth The width of the character bitmap. A value of 0 specifies a proportional font. A non-zero value specifies the pixel width of the characters in a fixed-space font. PixHeight The height of the character bitmap. Part Description ---------------------------------------------------------------------------- PixHeight The height of the character bitmap. Leading The number of blank lines at the top of the character definition to act as leading between lines. AvgWidth The average width of characters in pixels. MaxWidth The pixel width of the widest character in the font. FileName The filename from which the font was loaded. The filename has the extension .FON. FaceName The name of the typeface (for example, Helvetica, Courier) taken from the filename. Part Description ---------------------------------------------------------------------------- from the filename. Note When using GetRFontInfo, make sure you have access to the .FON file on disk so that it can find the FontNum, FileName, and FaceName values for the currently selected font. For more information on the elements of the variable type FontInfo, see the Microsoft Windows developer documentation on font file format.